﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace ExtBusiness.Common
{
    public class PubConstants
    {
        /// <summary>
        /// API超时控制
        /// </summary>
        public static readonly Int32 RPCTimeout = Int32.Parse(ConfigurationManager.AppSettings["RPCTimeout"] ?? "80") * 1000;

        #region  ContentTypes
        public const String PostForm = "application/x-www-form-urlencoded";
        public const String TEXT = "text/html";
        public const String JSON = "application/json";
        public const String XML = "application/xml";
        public const String GData = "application/x-protobuf";
        #endregion
    }
}
